Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
arifogel committed Apr 1, 2021
1 parent e4f9fd9 commit 2664134
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static <R extends AbstractRouteDecorator> boolean shouldActivateNextHopIp
// longest prefix match upon activation, creating a loop.
Prefix network = route.getNetwork();
int prefixLength = network.getPrefixLength();
boolean containsOwnNextHop = network.containsIp(route.getNextHopIp());
boolean containsOwnNextHop = network.containsIp(nextHopIp);
return matchingRoutes.stream()
.map(AbstractRouteDecorator::getAbstractRoute)
.anyMatch(
Expand Down

0 comments on commit 2664134

Please sign in to comment.