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
ConstructorDescriptionMatchCommunitySetHandler
(org.opendaylight.mdsal.binding.api.DataBroker databroker) -
Method Summary
Modifier and TypeMethodDescriptiongetConditionParameter
(Attributes attributes) Returns the specific attribute to check if match condition.boolean
matchExportCondition
(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryExportParameters routeEntryExportParameters, List<Communities> communities, MatchCommunitySet conditions) Check if route matches defined condition (Export Policy).boolean
matchImportCondition
(AfiSafiType afiSafi, RouteEntryBaseAttributes routeEntryInfo, BGPRouteEntryImportParameters routeEntryImportParameters, List<Communities> communities, MatchCommunitySet conditions) Check if route matches defined condition (Import Policy).
-
Constructor Details
-
MatchCommunitySetHandler
public MatchCommunitySetHandler(org.opendaylight.mdsal.binding.api.DataBroker databroker)
-
-
Method Details
-
matchImportCondition
public boolean matchImportCondition(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(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
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
-