All Known Subinterfaces:
BgpConditionsAugmentationPolicy<T,N>, BgpConditionsPolicy<T,N>, ConditionsAugPolicy<N>
All Known Implementing Classes:
MatchAfiSafiNotInHandler, MatchAsPathSetHandler, MatchBgpNeighborSetHandler, MatchClusterIdSetHandler, MatchCommunitySetHandler, MatchExtCommunitySetHandler, MatchOriginatorIdSetHandler, MatchRoleSetHandler, VpnNonMemberHandler

public interface ConditionsPolicy<T,N>
Condition Policy: Check if route matches defined condition.
  • Method Details

    • matchImportCondition

      boolean matchImportCondition(@NonNull AfiSafiType afiSafiType, @NonNull RouteEntryBaseAttributes routeEntryInfo, @NonNull BGPRouteEntryImportParameters routeEntryImportParameters, @Nullable N attributes, @NonNull T conditions)
      Check if route matches defined condition (Import Policy).
      Parameters:
      afiSafiType - Afi Safi Type
      routeEntryInfo - contains route Entry Info(AS, ClusterId, OriginatorId)
      routeEntryImportParameters - contains route basic information
      attributes - attributes
      conditions - configured conditions
      Returns:
      true if all defined condition matches
    • matchExportCondition

      boolean matchExportCondition(@NonNull AfiSafiType afiSafiType, @NonNull RouteEntryBaseAttributes routeEntryInfo, @NonNull BGPRouteEntryExportParameters routeEntryExportParameters, @Nullable N attributes, T conditions)
      Check if route matches defined condition (Export Policy).
      Parameters:
      afiSafiType - Afi Safi Type
      routeEntryInfo - contains route Entry Info(AS, ClusterId, OriginatorId)
      routeEntryExportParameters - route basic export information
      attributes - attributes
      conditions - configured conditions
      Returns:
      true if all defined condition matches
    • getConditionParameter

      @Nullable N getConditionParameter(@NonNull Attributes attributes)
      Returns the specific attribute to check if match condition.
      Parameters:
      attributes - route attributes
      Returns:
      specific attribute