Interface ConditionsPolicy<T,N>
- 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 Summary
Modifier and TypeMethodDescription@Nullable N
getConditionParameter
(@NonNull Attributes attributes) Returns the specific attribute to check if match condition.boolean
matchExportCondition
(@NonNull AfiSafiType afiSafiType, @NonNull RouteEntryBaseAttributes routeEntryInfo, @NonNull BGPRouteEntryExportParameters routeEntryExportParameters, @Nullable N attributes, T conditions) Check if route matches defined condition (Export Policy).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).
-
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 TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryImportParameters
- contains route basic informationattributes
- attributesconditions
- 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 TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryExportParameters
- route basic export informationattributes
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
getConditionParameter
Returns the specific attribute to check if match condition.- Parameters:
attributes
- route attributes- Returns:
- specific attribute
-