@Test public void testNonRoutingIsNotInstalled() { Rib rib = new Rib(); AnnotatedRoute<AbstractRoute> route = annotateRoute( StaticRoute.builder() .setNextHopInterface("foo") .setNetwork(Prefix.ZERO) .setAdministrativeCost(1) .setNonRouting(true) .build()); assertThat(rib.mergeRouteGetDelta(route), equalTo(RibDelta.empty())); assertThat(rib.mergeRoute(route), equalTo(false)); }
@Override @Nonnull public RibDelta<AnnotatedRoute<AbstractRoute>> mergeRouteGetDelta( AnnotatedRoute<AbstractRoute> route) { return !route.getRoute().getNonRouting() ? super.mergeRouteGetDelta(route) : RibDelta.empty(); }
Rib extends AnnotatedRib<AbstractRoute> implements Serializable { @Override @Nonnull public RibDelta<AnnotatedRoute<AbstractRoute>> mergeRouteGetDelta( AnnotatedRoute<AbstractRoute> route) { return !route.getRoute().getNonRouting() ? super.mergeRouteGetDelta(route) : RibDelta.empty(); } }
Rib extends AnnotatedRib<AbstractRoute> implements Serializable { @Override @Nonnull public RibDelta<AnnotatedRoute<AbstractRoute>> mergeRouteGetDelta( AnnotatedRoute<AbstractRoute> route) { return !route.getRoute().getNonRouting() ? super.mergeRouteGetDelta(route) : RibDelta.empty(); } Rib(); }
Rib extends AnnotatedRib<AbstractRoute> implements Serializable { @Override @Nonnull public RibDelta<AnnotatedRoute<AbstractRoute>> mergeRouteGetDelta( AnnotatedRoute<AbstractRoute> route) { return !route.getRoute().getNonRouting() ? super.mergeRouteGetDelta(route) : RibDelta.empty(); } Rib(); @Override int comparePreference(
      @Nonnull AnnotatedRoute<AbstractRoute> lhs, @Nonnull AnnotatedRoute<AbstractRoute> rhs); @Override @Nonnull RibDelta<AnnotatedRoute<AbstractRoute>> mergeRouteGetDelta(
      AnnotatedRoute<AbstractRoute> route); }
Rib extends AnnotatedRib<AbstractRoute> implements Serializable { @Override @Nonnull public RibDelta<AnnotatedRoute<AbstractRoute>> mergeRouteGetDelta( AnnotatedRoute<AbstractRoute> route) { return !route.getRoute().getNonRouting() ? super.mergeRouteGetDelta(route) : RibDelta.empty(); } Rib(); @Override int comparePreference(
      @Nonnull AnnotatedRoute<AbstractRoute> lhs, @Nonnull AnnotatedRoute<AbstractRoute> rhs); @Override @Nonnull RibDelta<AnnotatedRoute<AbstractRoute>> mergeRouteGetDelta(
      AnnotatedRoute<AbstractRoute> route);  }