@Test public void testJsonSerialization() { EvpnType5Route er = EvpnType5Route.builder() .setNetwork(Prefix.parse("1.1.1.0/24")) .setNextHopInterface("blah") .setOriginatorIp(Ip.parse("1.1.1.1")) .setOriginType(OriginType.IGP) .setProtocol(RoutingProtocol.BGP) .setRouteDistinguisher(RouteDistinguisher.from(Ip.parse("1.1.1.1"), 2)) .build(); assertThat(BatfishObjectMapper.clone(er, EvpnType5Route.class), equalTo(er)); }
public static Builder builder() { return new Builder(); }
EvpnType5Route extends EvpnRoute<EvpnType5Route.Builder, EvpnType5Route> { public static Builder builder() { return new Builder(); } }
EvpnType5Route extends EvpnRoute<EvpnType5Route.Builder, EvpnType5Route> { public static Builder builder() { return new Builder(); } private  EvpnType5Route(
      int admin,
      AsPath asPath,
      Set<Long> clusterList,
      Set<Community> communities,
      boolean discard,
      long localPreference,
      long med,
      Prefix network,
      String nextHopInterface,
      Ip nextHopIp,
      boolean nonForwarding,
      boolean nonRouting,
      Ip originatorIp,
      OriginType originType,
      RoutingProtocol protocol,
      @Nullable Ip receivedFromIp,
      boolean receivedFromRouteReflectorClient,
      RouteDistinguisher routeDistinguisher,
      @Nullable RoutingProtocol srcProtocol,
      long tag,
      int weight); }
EvpnType5Route extends EvpnRoute<EvpnType5Route.Builder, EvpnType5Route> { public static Builder builder() { return new Builder(); } private  EvpnType5Route(
      int admin,
      AsPath asPath,
      Set<Long> clusterList,
      Set<Community> communities,
      boolean discard,
      long localPreference,
      long med,
      Prefix network,
      String nextHopInterface,
      Ip nextHopIp,
      boolean nonForwarding,
      boolean nonRouting,
      Ip originatorIp,
      OriginType originType,
      RoutingProtocol protocol,
      @Nullable Ip receivedFromIp,
      boolean receivedFromRouteReflectorClient,
      RouteDistinguisher routeDistinguisher,
      @Nullable RoutingProtocol srcProtocol,
      long tag,
      int weight); static Builder builder(); @Override Builder toBuilder(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); }
EvpnType5Route extends EvpnRoute<EvpnType5Route.Builder, EvpnType5Route> { public static Builder builder() { return new Builder(); } private  EvpnType5Route(
      int admin,
      AsPath asPath,
      Set<Long> clusterList,
      Set<Community> communities,
      boolean discard,
      long localPreference,
      long med,
      Prefix network,
      String nextHopInterface,
      Ip nextHopIp,
      boolean nonForwarding,
      boolean nonRouting,
      Ip originatorIp,
      OriginType originType,
      RoutingProtocol protocol,
      @Nullable Ip receivedFromIp,
      boolean receivedFromRouteReflectorClient,
      RouteDistinguisher routeDistinguisher,
      @Nullable RoutingProtocol srcProtocol,
      long tag,
      int weight); static Builder builder(); @Override Builder toBuilder(); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }