@Test public void testJavaSerialization() { BgpUnnumberedPeerConfig bgpUnnumberedPeerConfig = BgpUnnumberedPeerConfig.builder() .setIpv4UnicastAddressFamily(Ipv4UnicastAddressFamily.builder().build()) .setAppliedRibGroup( new RibGroup( "blah", ImmutableList.of(new RibId("d", "e", "f")), "blah1", new RibId("a", "b", "c"))) .setAuthenticationSettings(BGP_AUTHENTICATION_SETTINGS) .setClusterId(5L) .setDefaultMetric(5) .setDescription("foo") .setEbgpMultihop(true) .setEnforceFirstAs(true) .setIpv4UnicastAddressFamily( Ipv4UnicastAddressFamily.builder() .setExportPolicy("bar") .setExportPolicySources(ImmutableSortedSet.of("baz")) .setImportPolicy("boo") .setImportPolicySources(ImmutableSortedSet.of("booze")) .build()) .setGeneratedRoutes( ImmutableSet.of( GeneratedRoute.builder().setNetwork(Prefix.ZERO).setDiscard(true).build())) .setGroup("g1") .setLocalAs(10L) .setLocalIp(Ip.FIRST_CLASS_A_PRIVATE_IP) .setPeerInterface("eth0") .setRemoteAsns(LongSpace.of(11L)) .build(); assertThat(SerializationUtils.clone(bgpUnnumberedPeerConfig), equalTo(bgpUnnumberedPeerConfig)); }
public static Builder builder() { return new Builder(); }
BgpUnnumberedPeerConfig extends BgpPeerConfig { public static Builder builder() { return new Builder(); } }
BgpUnnumberedPeerConfig extends BgpPeerConfig { public static Builder builder() { return new Builder(); } private  BgpUnnumberedPeerConfig(
      @Nullable RibGroup appliedRibGroup,
      @Nullable BgpAuthenticationSettings authenticationSettings,
      @Nullable Long clusterId,
      @Nullable Long confederation,
      int defaultMetric,
      @Nullable String description,
      boolean ebgpMultihop,
      boolean enforceFirstAs,
      @Nullable Set<GeneratedRoute> generatedRoutes,
      @Nullable String group,
      @Nullable Long localAs,
      @Nullable Ip localIp,
      @Nonnull String peerInterface,
      @Nullable LongSpace remoteAsns,
      @Nullable Ipv4UnicastAddressFamily ipv4UnicastAddressFamily,
      @Nullable EvpnAddressFamily evpnAddressFamily); }
BgpUnnumberedPeerConfig extends BgpPeerConfig { public static Builder builder() { return new Builder(); } private  BgpUnnumberedPeerConfig(
      @Nullable RibGroup appliedRibGroup,
      @Nullable BgpAuthenticationSettings authenticationSettings,
      @Nullable Long clusterId,
      @Nullable Long confederation,
      int defaultMetric,
      @Nullable String description,
      boolean ebgpMultihop,
      boolean enforceFirstAs,
      @Nullable Set<GeneratedRoute> generatedRoutes,
      @Nullable String group,
      @Nullable Long localAs,
      @Nullable Ip localIp,
      @Nonnull String peerInterface,
      @Nullable LongSpace remoteAsns,
      @Nullable Ipv4UnicastAddressFamily ipv4UnicastAddressFamily,
      @Nullable EvpnAddressFamily evpnAddressFamily); static Builder builder(); @Nonnull @JsonProperty(PROP_PEER_INTERFACE) String getPeerInterface(); @Override boolean equals(Object o); @Override int hashCode(); }
BgpUnnumberedPeerConfig extends BgpPeerConfig { public static Builder builder() { return new Builder(); } private  BgpUnnumberedPeerConfig(
      @Nullable RibGroup appliedRibGroup,
      @Nullable BgpAuthenticationSettings authenticationSettings,
      @Nullable Long clusterId,
      @Nullable Long confederation,
      int defaultMetric,
      @Nullable String description,
      boolean ebgpMultihop,
      boolean enforceFirstAs,
      @Nullable Set<GeneratedRoute> generatedRoutes,
      @Nullable String group,
      @Nullable Long localAs,
      @Nullable Ip localIp,
      @Nonnull String peerInterface,
      @Nullable LongSpace remoteAsns,
      @Nullable Ipv4UnicastAddressFamily ipv4UnicastAddressFamily,
      @Nullable EvpnAddressFamily evpnAddressFamily); static Builder builder(); @Nonnull @JsonProperty(PROP_PEER_INTERFACE) String getPeerInterface(); @Override boolean equals(Object o); @Override int hashCode();  }