class EvpnRoute extends BgpRoute<B, R> {

  @JsonIgnore
  public Set<ExtendedCommunity> getRouteTargets() {
    return _communities.getExtendedCommunities().stream()
        .filter(ExtendedCommunity::isRouteTarget)
        .collect(ImmutableSet.toImmutableSet());
  }

  protected  EvpnRoute(
      Prefix network,
      Ip nextHopIp,
      int admin,
      AsPath asPath,
      Set<Community> communities,
      boolean discard,
      long localPreference,
      long med,
      String nextHopInterface,
      Ip originatorIp,
      Set<Long> clusterList,
      boolean receivedFromRouteReflectorClient,
      OriginType originType,
      RoutingProtocol protocol,
      @Nullable Ip receivedFromIp,
      @Nullable RoutingProtocol srcProtocol,
      long tag,
      int weight,
      boolean nonForwarding,
      boolean nonRouting,
      RouteDistinguisher routeDistinguisher);

}