@Test public void testJavaSerialization() { Layer3VniConfig vni = Layer3VniConfig.builder() .setVni(1) .setVrf("v") .setRouteDistinguisher(RouteDistinguisher.from(65555L, 1)) .setRouteTarget(ExtendedCommunity.of(0, 1, 1)) .setImportRouteTarget(importRtPatternForAnyAs(1)) .setAdvertiseV4Unicast(false) .build(); assertThat(SerializationUtils.clone(vni), equalTo(vni)); }
public static Builder builder() { return new Builder(); }
Layer3VniConfig extends VniConfig implements Serializable, Comparable<Layer3VniConfig> { public static Builder builder() { return new Builder(); } }
Layer3VniConfig extends VniConfig implements Serializable, Comparable<Layer3VniConfig> { public static Builder builder() { return new Builder(); } private  Layer3VniConfig(
      int vni,
      String vrf,
      RouteDistinguisher rd,
      ExtendedCommunity routeTarget,
      String importRouteTarget,
      boolean advertiseV4Unicast); }
Layer3VniConfig extends VniConfig implements Serializable, Comparable<Layer3VniConfig> { public static Builder builder() { return new Builder(); } private  Layer3VniConfig(
      int vni,
      String vrf,
      RouteDistinguisher rd,
      ExtendedCommunity routeTarget,
      String importRouteTarget,
      boolean advertiseV4Unicast); @JsonProperty(PROP_ADVERTISE_V4_UNICAST) boolean getAdvertiseV4Unicast(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(Layer3VniConfig o); @Override String toString(); static Builder builder(); }
Layer3VniConfig extends VniConfig implements Serializable, Comparable<Layer3VniConfig> { public static Builder builder() { return new Builder(); } private  Layer3VniConfig(
      int vni,
      String vrf,
      RouteDistinguisher rd,
      ExtendedCommunity routeTarget,
      String importRouteTarget,
      boolean advertiseV4Unicast); @JsonProperty(PROP_ADVERTISE_V4_UNICAST) boolean getAdvertiseV4Unicast(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(Layer3VniConfig o); @Override String toString(); static Builder builder();  }