Class MatchCommunitySetHandler
- java.lang.Object
-
- org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.AbstractCommunityHandler
-
- org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.conditions.MatchCommunitySetHandler
-
- All Implemented Interfaces:
BgpConditionsPolicy<MatchCommunitySet,List<Communities>>
,ConditionsPolicy<MatchCommunitySet,List<Communities>>
public final class MatchCommunitySetHandler extends AbstractCommunityHandler implements BgpConditionsPolicy<MatchCommunitySet,List<Communities>>
Match a set of Communities (ALL, ANY, INVERT).
-
-
Field Summary
-
Fields inherited from class org.opendaylight.protocol.bgp.openconfig.routing.policy.statement.AbstractCommunityHandler
communitySets
-
-
Constructor Summary
Constructors Constructor Description MatchCommunitySetHandler(org.opendaylight.mdsal.binding.api.DataBroker databroker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Communities>
getConditionParameter(Attributes attributes)
Returns the specific attribute to check if match condition.boolean
matchExportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, List<Communities> communities, MatchCommunitySet conditions)
Check if route matches defined condition (Export Policy).boolean
matchImportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, List<Communities> communities, MatchCommunitySet conditions)
Check if route matches defined condition (Import Policy).
-
-
-
Method Detail
-
matchImportCondition
public boolean matchImportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, List<Communities> communities, MatchCommunitySet conditions)
Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Import Policy).- Specified by:
matchImportCondition
in interfaceConditionsPolicy<MatchCommunitySet,List<Communities>>
- Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryImportParameters
- contains route basic informationcommunities
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
matchExportCondition
public boolean matchExportCondition(Class<? extends AfiSafiType> afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, List<Communities> communities, MatchCommunitySet conditions)
Description copied from interface:ConditionsPolicy
Check if route matches defined condition (Export Policy).- Specified by:
matchExportCondition
in interfaceConditionsPolicy<MatchCommunitySet,List<Communities>>
- Parameters:
afiSafi
- Afi Safi TyperouteEntryInfo
- contains route Entry Info(AS, ClusterId, OriginatorId)routeEntryExportParameters
- route basic export informationcommunities
- attributesconditions
- configured conditions- Returns:
- true if all defined condition matches
-
getConditionParameter
public List<Communities> getConditionParameter(Attributes attributes)
Description copied from interface:ConditionsPolicy
Returns the specific attribute to check if match condition.- Specified by:
getConditionParameter
in interfaceConditionsPolicy<MatchCommunitySet,List<Communities>>
- Parameters:
attributes
- route attributes- Returns:
- specific attribute
-
-