@Test public void testGetSetMaxMedMetric() { BgpVrf bgpVrf = new BgpVrf("bgpVrf"); assertThat(getSetMaxMedMetric(bgpVrf), equalTo(null)); bgpVrf.setMaxMedAdministrative(1234L); assertThat(getSetMaxMedMetric(bgpVrf), equalTo(new SetMetric(new LiteralLong(1234L)))); }
@VisibleForTesting static @Nullable SetMetric getSetMaxMedMetric(BgpVrf bgpVrf) { return bgpVrf.getMaxMedAdministrative() != null ? new SetMetric(new LiteralLong(bgpVrf.getMaxMedAdministrative())) : null; }
CumulusConversions { @VisibleForTesting static @Nullable SetMetric getSetMaxMedMetric(BgpVrf bgpVrf) { return bgpVrf.getMaxMedAdministrative() != null ? new SetMetric(new LiteralLong(bgpVrf.getMaxMedAdministrative())) : null; } }
CumulusConversions { @VisibleForTesting static @Nullable SetMetric getSetMaxMedMetric(BgpVrf bgpVrf) { return bgpVrf.getMaxMedAdministrative() != null ? new SetMetric(new LiteralLong(bgpVrf.getMaxMedAdministrative())) : null; }  }
CumulusConversions { @VisibleForTesting static @Nullable SetMetric getSetMaxMedMetric(BgpVrf bgpVrf) { return bgpVrf.getMaxMedAdministrative() != null ? new SetMetric(new LiteralLong(bgpVrf.getMaxMedAdministrative())) : null; }  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 @Nullable SetMetric getSetMaxMedMetric(BgpVrf bgpVrf) { return bgpVrf.getMaxMedAdministrative() != null ? new SetMetric(new LiteralLong(bgpVrf.getMaxMedAdministrative())) : null; }  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; }