Class MatchClusterIdSetHandler
- java.lang.Object
-
- org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.conditions.MatchClusterIdSetHandler
-
- All Implemented Interfaces:
BgpConditionsAugmentationPolicy<MatchClusterIdSetCondition,ClusterId>
,ConditionsPolicy<MatchClusterIdSetCondition,ClusterId>
public final class MatchClusterIdSetHandler extends Object implements BgpConditionsAugmentationPolicy<MatchClusterIdSetCondition,ClusterId>
Match a set of Cluster Id(ALL, NAY, INVERT).
-
-
Constructor Summary
Constructors Constructor Description MatchClusterIdSetHandler(org.opendaylight.mdsal.binding.api.DataBroker dataBroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterId
getConditionParameter(Attributes attributes)
Returns the specific attribute to check if match condition.boolean
matchExportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters exportParameters, ClusterId clusterIdAtt, MatchClusterIdSetCondition conditions)
Check if route matches defined condition (Export Policy).boolean
matchImportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters importParameters, ClusterId clusterIdAtt, MatchClusterIdSetCondition conditions)
Check if route matches defined condition (Import Policy).
-
-
-
Method Detail
-
matchImportCondition
public boolean matchImportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters importParameters, ClusterId clusterIdAtt, MatchClusterIdSetCondition conditions)
Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Import Policy).- Specified by:
matchImportCondition
in interfaceConditionsPolicy<MatchClusterIdSetCondition,ClusterId>
- Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)importParameters
- contains route basic informationclusterIdAtt
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
matchExportCondition
public boolean matchExportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters exportParameters, ClusterId clusterIdAtt, MatchClusterIdSetCondition conditions)
Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Export Policy).- Specified by:
matchExportCondition
in interfaceConditionsPolicy<MatchClusterIdSetCondition,ClusterId>
- Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)exportParameters
- route basic export informationclusterIdAtt
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
getConditionParameter
public ClusterId getConditionParameter(Attributes attributes)
Description copied from interface:ConditionsPolicy
Returns the specific attribute to check if match condition.- Specified by:
getConditionParameter
in interfaceConditionsPolicy<MatchClusterIdSetCondition,ClusterId>
- Parameters:
attributes
- route attributes- Returns:
- specific attribute
-
-