@Test public void testToRouteFilterLine() { IpPrefixListLine prefixListLine = new IpPrefixListLine( LineAction.PERMIT, 10, Prefix.parse("10.0.0.1/24"), new SubRange(27, 30)); RouteFilterLine rfl = toRouteFilterLine(prefixListLine); assertThat( rfl, equalTo( new RouteFilterLine( LineAction.PERMIT, Prefix.parse("10.0.0.1/24"), new SubRange(27, 30)))); }
@VisibleForTesting static @Nonnull RouteFilterLine toRouteFilterLine(IpPrefixListLine ipPrefixListLine) { return new RouteFilterLine( ipPrefixListLine.getAction(), ipPrefixListLine.getPrefix(), ipPrefixListLine.getLengthRange()); }
CumulusConversions { @VisibleForTesting static @Nonnull RouteFilterLine toRouteFilterLine(IpPrefixListLine ipPrefixListLine) { return new RouteFilterLine( ipPrefixListLine.getAction(), ipPrefixListLine.getPrefix(), ipPrefixListLine.getLengthRange()); } }
CumulusConversions { @VisibleForTesting static @Nonnull RouteFilterLine toRouteFilterLine(IpPrefixListLine ipPrefixListLine) { return new RouteFilterLine( ipPrefixListLine.getAction(), ipPrefixListLine.getPrefix(), ipPrefixListLine.getLengthRange()); }  }
CumulusConversions { @VisibleForTesting static @Nonnull RouteFilterLine toRouteFilterLine(IpPrefixListLine ipPrefixListLine) { return new RouteFilterLine( ipPrefixListLine.getAction(), ipPrefixListLine.getPrefix(), ipPrefixListLine.getLengthRange()); }  static @Nonnull String computeBgpCommonExportPolicyName(String vrfName); @VisibleForTesting static @Nonnull String computeBgpPeerExportPolicyName(
      String vrfName, String peerInterface); static @Nonnull String computeBgpPeerImportPolicyName(String vrf, String peer); static String computeBgpGenerationPolicyName(boolean ipv4, String vrfName, String prefix); static String computeMatchSuppressedSummaryOnlyPolicyName(String vrfName); static String computeOspfExportPolicyName(String vrfName); }
CumulusConversions { @VisibleForTesting static @Nonnull RouteFilterLine toRouteFilterLine(IpPrefixListLine ipPrefixListLine) { return new RouteFilterLine( ipPrefixListLine.getAction(), ipPrefixListLine.getPrefix(), ipPrefixListLine.getLengthRange()); }  static @Nonnull String computeBgpCommonExportPolicyName(String vrfName); @VisibleForTesting static @Nonnull String computeBgpPeerExportPolicyName(
      String vrfName, String peerInterface); static @Nonnull String computeBgpPeerImportPolicyName(String vrf, String peer); static String computeBgpGenerationPolicyName(boolean ipv4, String vrfName, String prefix); static String computeMatchSuppressedSummaryOnlyPolicyName(String vrfName); static String computeOspfExportPolicyName(String vrfName); static final int DEFAULT_STATIC_ROUTE_ADMINISTRATIVE_DISTANCE; static final int DEFAULT_STATIC_ROUTE_METRIC; static final Ip CLAG_LINK_LOCAL_IP; static final long DEFAULT_MAX_MED; static final double SPEED_CONVERSION_FACTOR; static final double DEFAULT_LOOPBACK_BANDWIDTH; static final double DEFAULT_PORT_BANDWIDTH; }