Skip to content

Commit

Permalink
Use existing policy processor
Browse files Browse the repository at this point in the history
  • Loading branch information
ratulm committed Aug 6, 2021
1 parent ef60aaa commit 58a16cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -232,23 +232,6 @@ public boolean process(
inputRoute, outputRoute, null, null, direction, ribIntersectsPrefixSpaceEvaluator, null);
}

/** @return True if the policy accepts the route. */
public boolean process(
AbstractRouteDecorator inputRoute,
AbstractRouteBuilder<?, ?> outputRoute,
BgpSessionProperties bgpSessionProperties,
Direction direction,
BiFunction<RibExpr, PrefixSpace, Boolean> ribIntersectsPrefixSpaceEvaluator) {
return process(
inputRoute,
outputRoute,
bgpSessionProperties,
null,
direction,
ribIntersectsPrefixSpaceEvaluator,
null);
}

public boolean process(
@Nonnull AbstractRouteDecorator inputRoute,
@Nonnull AbstractRouteBuilder<?, ?> outputRoute,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ static boolean processExternalBgpAdvertisementImport(
: null;

// TODO Figure out whether transformedOutgoingRoute ought to have an annotation
return ipv4ImportPolicy.process(
return ipv4ImportPolicy.processBgpRoute(
inputRoute, outputRouteBuilder, bgpSessionProperties, IN, ribExprEvaluator);
}

Expand Down

0 comments on commit 58a16cf

Please sign in to comment.