@Test public void testIsInterfaceRoute() { StaticRoute.Builder sb = StaticRoute.builder().setNetwork(Prefix.parse("9.9.9.0/24")).setAdministrativeCost(1); Ip someIp = Ip.parse("1.1.1.1"); StaticRoute sr = sb.setNextHopInterface(Route.UNSET_NEXT_HOP_INTERFACE).build(); assertThat(isInterfaceRoute(sr), equalTo(false)); sr = sb.setNextHopInterface(Route.UNSET_NEXT_HOP_INTERFACE).setNextHopIp(someIp).build(); assertThat(isInterfaceRoute(sr), equalTo(false)); sr = sb.setNextHopInterface(Interface.NULL_INTERFACE_NAME) .setNextHopIp(Route.UNSET_ROUTE_NEXT_HOP_IP) .build(); assertThat(isInterfaceRoute(sr), equalTo(true)); sr = sb.setNextHopInterface(Interface.NULL_INTERFACE_NAME).setNextHopIp(someIp).build(); assertThat(isInterfaceRoute(sr), equalTo(true)); sr = sb.setNextHopInterface("Eth0").setNextHopIp(Route.UNSET_ROUTE_NEXT_HOP_IP).build(); assertThat(isInterfaceRoute(sr), equalTo(true)); sr = sb.setNextHopInterface("Eth0").setNextHopIp(someIp).build(); assertThat(isInterfaceRoute(sr), equalTo(true)); }
public static boolean isInterfaceRoute(StaticRoute route) { return !Route.UNSET_NEXT_HOP_INTERFACE.equals(route.getNextHopInterface()); }
StaticRouteHelper { public static boolean isInterfaceRoute(StaticRoute route) { return !Route.UNSET_NEXT_HOP_INTERFACE.equals(route.getNextHopInterface()); } }
StaticRouteHelper { public static boolean isInterfaceRoute(StaticRoute route) { return !Route.UNSET_NEXT_HOP_INTERFACE.equals(route.getNextHopInterface()); }  }
StaticRouteHelper { public static boolean isInterfaceRoute(StaticRoute route) { return !Route.UNSET_NEXT_HOP_INTERFACE.equals(route.getNextHopInterface()); }  static boolean isInterfaceRoute(StaticRoute route); static boolean isNextVrfRoute(StaticRoute route); static boolean shouldActivateNextHopIpRoute(
      @Nonnull StaticRoute route, @Nonnull GenericRib<R> rib); }
StaticRouteHelper { public static boolean isInterfaceRoute(StaticRoute route) { return !Route.UNSET_NEXT_HOP_INTERFACE.equals(route.getNextHopInterface()); }  static boolean isInterfaceRoute(StaticRoute route); static boolean isNextVrfRoute(StaticRoute route); static boolean shouldActivateNextHopIpRoute(
      @Nonnull StaticRoute route, @Nonnull GenericRib<R> rib);  }