@Test public void testComputeRouteMatchConditions() { Set<AbstractRoute> routes = ImmutableSet.of(new ConnectedRoute(P1, INTERFACE1), new ConnectedRoute(P2, INTERFACE2)); Map<Prefix, IpSpace> matchingIps = ImmutableMap.of(P1, IPSPACE1, P2, IPSPACE2); assertThat( ForwardingAnalysisImpl.computeRouteMatchConditions(routes, matchingIps), isAclIpSpaceThat( hasLines( containsInAnyOrder( AclIpSpaceLine.permit(IPSPACE1), AclIpSpaceLine.permit(IPSPACE2))))); }
@VisibleForTesting static IpSpace computeRouteMatchConditions( Set<AbstractRoute> routes, Map<Prefix, IpSpace> matchingIps) { return computeRouteMatchConditionsFilter(routes, matchingIps, r -> true); }
ForwardingAnalysisImpl implements ForwardingAnalysis, Serializable { @VisibleForTesting static IpSpace computeRouteMatchConditions( Set<AbstractRoute> routes, Map<Prefix, IpSpace> matchingIps) { return computeRouteMatchConditionsFilter(routes, matchingIps, r -> true); } }
ForwardingAnalysisImpl implements ForwardingAnalysis, Serializable { @VisibleForTesting static IpSpace computeRouteMatchConditions( Set<AbstractRoute> routes, Map<Prefix, IpSpace> matchingIps) { return computeRouteMatchConditionsFilter(routes, matchingIps, r -> true); } ForwardingAnalysisImpl(
      Map<String, Configuration> configurations,
      Map<String, Map<String, Fib>> fibs,
      Topology topology,
      Map<Location, LocationInfo> locationInfo); }
ForwardingAnalysisImpl implements ForwardingAnalysis, Serializable { @VisibleForTesting static IpSpace computeRouteMatchConditions( Set<AbstractRoute> routes, Map<Prefix, IpSpace> matchingIps) { return computeRouteMatchConditionsFilter(routes, matchingIps, r -> true); } ForwardingAnalysisImpl(
      Map<String, Configuration> configurations,
      Map<String, Map<String, Fib>> fibs,
      Topology topology,
      Map<Location, LocationInfo> locationInfo); @Nonnull @Override Map<String, Map<String, Map<String, IpSpace>>> getAcceptsIps(); @Override Map<String, Map<String, IpSpace>> getArpReplies(); @Override Map<String, Map<String, Map<Edge, IpSpace>>> getArpTrueEdge(); @Override Map<String, Map<String, Map<String, IpSpace>>> getNextVrfIps(); @Override Map<String, Map<String, IpSpace>> getNullRoutedIps(); @Override Map<String, Map<String, IpSpace>> getRoutableIps(); @Override Map<String, Map<String, Map<String, IpSpace>>> getDeliveredToSubnet(); @Override Map<String, Map<String, Map<String, IpSpace>>> getExitsNetwork(); @Override Map<String, Map<String, Map<String, IpSpace>>> getNeighborUnreachable(); @Override Map<String, Map<String, Map<String, IpSpace>>> getInsufficientInfo(); }
ForwardingAnalysisImpl implements ForwardingAnalysis, Serializable { @VisibleForTesting static IpSpace computeRouteMatchConditions( Set<AbstractRoute> routes, Map<Prefix, IpSpace> matchingIps) { return computeRouteMatchConditionsFilter(routes, matchingIps, r -> true); } ForwardingAnalysisImpl(
      Map<String, Configuration> configurations,
      Map<String, Map<String, Fib>> fibs,
      Topology topology,
      Map<Location, LocationInfo> locationInfo); @Nonnull @Override Map<String, Map<String, Map<String, IpSpace>>> getAcceptsIps(); @Override Map<String, Map<String, IpSpace>> getArpReplies(); @Override Map<String, Map<String, Map<Edge, IpSpace>>> getArpTrueEdge(); @Override Map<String, Map<String, Map<String, IpSpace>>> getNextVrfIps(); @Override Map<String, Map<String, IpSpace>> getNullRoutedIps(); @Override Map<String, Map<String, IpSpace>> getRoutableIps(); @Override Map<String, Map<String, Map<String, IpSpace>>> getDeliveredToSubnet(); @Override Map<String, Map<String, Map<String, IpSpace>>> getExitsNetwork(); @Override Map<String, Map<String, Map<String, IpSpace>>> getNeighborUnreachable(); @Override Map<String, Map<String, Map<String, IpSpace>>> getInsufficientInfo();  }